<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Geekopolis</title>
<style>
body {
	font-family: verdana;
	font-size: small;
	margin: 0.2cm
}
</style>
</head>
<body>
Click in the textarea, press Ctrl-C to copy the text, 
and paste the text into a text editor such as notepad to
save the results. 
<form>
<script type="text/javascript">
	document.writeln("<textarea rows=\"30\" cols=\"50\" onfocus=\"this.select()\">");
	document.writeln("&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;");
	document.writeln("&lt;words&gt;");
	var picklist = window.opener.document.getElementById("picklist");
	var options = picklist.options;
	for ( var i=0; i < options.length; i++){
		document.writeln("\t&lt;word&gt;");
		var value = options[i].value.split(",");
		document.writeln("\t\t&lt;english&gt;" + value[0] + "&lt;/english&gt;");
		var other = '';
		for (var j = 0; j < value[1].length; j++) {
			if ( value[1].charCodeAt(j) <= 255 ) {
				other += value[1].substring( j,(j+1) );
			} else {
				other += "&amp;#" + value[1].charCodeAt(j) + ";";
			}
		}
		document.writeln("\t\t&lt;!-- " + value[1] + " --&gt;"); 
		document.writeln("\t\t&lt;other&gt;" + other + "&lt;/other&gt;");
		document.writeln("\t\t&lt;hint&gt;" + value[2] + "&lt;/hint&gt;");
		document.writeln("\t&lt;/word&gt;");
	}
	document.writeln("&lt;/words&gt;");
	document.writeln("</textarea>");
</script>
<div style="text-align: right"><input type="button" value="Close" onclick="window.close()"></div>
</form>
</body>
</html>